package com.huawei.hms.support.api.entity.auth;

import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import com.huawei.hms.core.aidl.IMessageEntity;

public class Scope implements Parcelable, IMessageEntity {
    public static final Creator<Scope> CREATOR = new Creator<Scope>() {
        public /* synthetic */ Object createFromParcel(Parcel parcel) {
            return a(parcel);
        }

        public /* synthetic */ Object[] newArray(int i) {
            return a(i);
        }

        public Scope a(Parcel parcel) {
            return new Scope(parcel);
        }

        public Scope[] a(int i) {
            return new Scope[i];
        }
    };
    private String mScopeUri;

    public Scope() {
        this.mScopeUri = null;
    }

    public Scope(String str) {
        this.mScopeUri = str;
    }

    protected Scope(Parcel parcel) {
        this.mScopeUri = parcel.readString();
    }

    public String getScopeUri() {
        return this.mScopeUri;
    }

    @Deprecated
    public boolean equeals(Object obj) {
        return equals(obj);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj instanceof Scope) {
            return this.mScopeUri.equals(((Scope) obj).mScopeUri);
        }
        return false;
    }

    public final int hashCode() {
        return this.mScopeUri.hashCode();
    }

    public final String toString() {
        return this.mScopeUri;
    }

    public int describeContents() {
        return 0;
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(this.mScopeUri);
    }
}
